/*
 * @Author: your name
 * @Date: 2020-08-16 13:25:10
 * @LastEditTime: 2020-08-16 13:27:58
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \demo\day02\demo03\snow\calc.go
 */
package snow

import (
	"fmt"
)

// 计算机
func Calc(s string, num1, num2 int) {
	switch s {
	case "*":
		fmt.Println(num1 * num2)
	case "+":
		fmt.Println(num1 + num2)
	case "-":
		fmt.Println(num1 - num2)
	case "/":
		fmt.Println(num1 / num2)
	}
}
